package com.mashibing.common.exception;

import com.mashibing.common.enums.ExceptionEnums;
import lombok.Getter;

/**
 * @author SNA
 * @date 2025/7/14
 * @Description 策略模块的异常对象
 **/
@Getter
public class StrategyException extends RuntimeException{

    private Integer code;

    public StrategyException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public StrategyException(ExceptionEnums enums) {
        super(enums.getMsg());
        this.code = enums.getCode();
    }
}
